﻿<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% String contextPath = request.getContextPath(); %>
<html>
<head>
    <meta charset="UTF-8">
    
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/themes/gray/easyuia.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/query-form.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/jquery.loadmask.css" />
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery.easyui.min.js"></script>
    <%--<script type="text/javascript" src="<%=contextPath%>/resources/js/extend.js"></script>--%>
    <%--<script type='text/javascript' src='<%=contextPath%>/resources/js/date.js'></script>--%>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/views/indicator.js'></script>
</head>
<body>
<div id="content" style="height: 100%">
    <div class="time">
	    <ul>
	        <li>	
                <label>&nbsp;&nbsp;报表选择&nbsp;
                <select class="easyui-combobox" name="formsid" id="formsid" style="width: 200px;"  >
                    <c:forEach var="forms" items="${allForms}">
                        <option value="${forms.id}">${forms.name}</option>
                    </c:forEach>
                </select></label>
                <label>领域选择：<input class="easyui-combobox" name="Field_com" id="Field_com" style="width:150px;"></label>
                <label>监测指标：<input class="easyui-combobox" name="provinceSelect" id="provinceSelect" style="width:150px;"></label>
                <label>指标名或汇总代码：<input class="easyui-textbox" type="text" id="sname" name="sname" /></label>
                <label><a href="#" onclick="query(1,30);" class="easyui-linkbutton" iconCls="icon-search">查询</a></label>
	        </li>
	    </ul>
    </div>
    <br>
    
    <div id="tablepanel" class="easyui-panel" style="width:auto; height:auto;padding:10px;padding-right: 25px;" title="指标列表">
		<table id="tt" style="width:auto;height:auto;" rownumbers="true" ></table>
	</div>
</div>

<div id="dialogAdd" style=" padding-top:10px;">
    <form id="fmAdd" name="formHead" style="text-align:right; padding-top: 0px; height: 100%; width: 99%" method="post"
          action="<%=contextPath%>/indicator/save.do">
          
        <input type="hidden" name="id" id="id"/>
        
        <table style="text-align:left;padding-left: 20px;width: 98%;" id="ruleTable">
            <tr>
                <td style="width:120px;text-align:right"><label>指标领域:</label></td>
	            <td>
		            <select class="easyui-combobox" name="type" id="type" style="width: 200px;">
						<c:forEach var="indicatorTypes" items="${indicatorTypeNames}">
							<option value="${indicatorTypes.id}">${indicatorTypes.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">指标名称:</td>
                <td><input class="easyui-textbox" style="margin-left:1px;width:200px;" type="text" name="name" id="name"/></td>
            </tr>

            <tr>
                <td style="width:120px;text-align:right"><label>指标级别:</label></td>
                <td>
                    <select class="easyui-combobox" name="level" id="level" style="width: 200px;">
                        <option value="1" selected>一级指标</option>
                        <option value="2">二级指标</option>
                        <option value="3">三级指标</option>
                        <option value="4">四级指标</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td style="width:120px;text-align:right">汇总代码:</td>
                <td ><input class="easyui-textbox" style="margin-left:1px;width:200px;" type="text" name="code" id="code"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>计量单位:</label></td>
	            <td>
		            <select class="easyui-combobox" name="unit"  id="unit" style="width: 200px;">
						<c:forEach var="unitsOption" items="${units}">
							<option value="${unitsOption.name}">${unitsOption.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>小数位:</label></td>
	            <td>
		            <select class="easyui-combobox" name="places"  id="places" style="width: 200px;">
		                <option value="0">0位</option>
		                <option value="1">1位</option>
		                <option value="2">2位</option>
		                <option value="-1">其他</option>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>父子指标关系:</label></td>
                <td>
                    <select class="easyui-combobox" name="prule"  id="prule" style="width: 350px;">
                        <option value="0">无父子关系（默认）</option>
                        <option value="1">父子指标为相同部门（仅展示用父子指标各上报数据）</option>
                        <option value="2">父子指标可为不同部门（仅展示用父子指标各上报数据）</option>
                        <option value="3">父指标是同部门子指标之和（无需上报父指标数据）</option>
                        <option value="4">父指标可为不同部门指标之和（同年份/同指标/只允许一个部门上报）</option>
                    </select>
                </td>
            </tr>
            <tr class="formsIdTwo">
                <td style="width:120px;text-align:right"><label>父类指标:</label></td>
	            <td>
		            <select class="easyui-combobox" name="pid" id="pid" style="width: 200px;">
						<c:forEach var="pIndicator" items="${allIndicator}">
							<option value="${pIndicator.id}">${pIndicator.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>上报类型:</label></td>
	            <td>
		            <select class="easyui-combobox" name="need" id="need" style="width: 200px;">
		                <option value="1" selected="selected">必须上报</option>
		                <option value="2">可免报</option>
		                <option value="0">其他</option>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>数据是否公开:</label></td>
	            <td>
		            <select class="easyui-combobox" name="hide" id="hide" style="width: 200px;">
		                <option value="1" selected="selected">可公开数据</option>
		                <option value="2">仅内部可看</option>
		                <option value="0">其他</option>
		            </select>
                </td>
            </tr>
<%--            <tr class="formsIdTwo">--%>
<%--                <td style="width:100px;text-align:right">当年目标值:</td>--%>
<%--                <td ><input class="easyui-textbox" style="margin-left:1px;width:200px;" type="text" name="base" id="base"/></td>--%>
<%--            </tr>--%>
            <tr class="formsIdTwo">
                <td style="width:160px;text-align:right">终期目标值:</td>
                <td ><input class="easyui-textbox" style="margin-left:1px;width:200px;" type="text" name="aim" id="aim"/></td>
            </tr>
            <tr class="formsIdTwo">
                <td style="width:160px;text-align:right"><label>规则类型:</label></td>
	            <td>
		            <select class="easyui-combobox" name="rule" id="rule" style="width: 200px;">
						<c:forEach var="ruleOption" items="${rules}">
							<option value="${ruleOption.id}">${ruleOption.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr class="formsIdTwo">
                <td style="width:120px;text-align:right"><label>国家指标:</label></td>
	            <td>
		            <select class="easyui-combobox" name="country"  id="country" style="width: 200px;">
		                <option value="1" selected="selected">是</option>
		                <option value="0">否</option>
		            </select>
                </td>
            </tr>
            <tr class="formsIdTwo">
                <td style="width:120px;text-align:right"><label>监测指标:</label></td>
	            <td>
		            <select class="easyui-combobox" name="province"  id="province" style="width: 200px;">
		                <option value="1" selected="selected">是</option>
		                <option value="0">否</option>
		            </select>
                </td>
            </tr>
            <tr class="formsIdTwo">
                <td style="width:120px;text-align:right"><label>是否分性别指标:</label></td>
	            <td>
		            <select class="easyui-combobox" name="sex"  id="sex" style="width: 200px;">
		                <option value="1" selected="selected">是</option>
		                <option value="0">否</option>
		            </select>
                </td>
            </tr>
            <%--<tr class="formsIdTwo">--%>
                <%--<td style="width:120px;text-align:right"><label>监测类型:</label></td>--%>
                <%--<td>--%>
                    <%--<select class="easyui-combobox" name="monitor" id="monitor" style="width: 200px;">--%>
                        <%--<c:forEach var="monitorOption" items="${monitors}">--%>
                            <%--<option value="${monitorOption.id}">${monitorOption.name}</option>--%>
                        <%--</c:forEach>--%>
                    <%--</select>--%>
                <%--</td>--%>
            <%--</tr>--%>
            <tr>
                <td style="width:120px;text-align:right">指标描述:</td>
                <td><textarea style="width:196px;height:60px;" type="text" name="description" id="description"></textarea></td>
            </tr>
            <tr>
                <td colspan="6"></td>
            </tr>
        </table>
        <div style = "margin-right:40%">
	        <a class="easyui-linkbutton" id="a_AddOK" onclick="">确定</a>
	        <a class="easyui-linkbutton" id="a_AddCancle">取消</a>
        </div>
    </form>
</div>

</body>
</html>